package apiday02;

public class IntegerDemo {
    public static void main(String[] args) {

        //触发自动装箱特性，会被编译为：Integer i = Integer.valueOf(5);
        Integer i = 5;

        //触发自动拆箱特性，会被编译为：int j = i.intValue();
        int j = i;
        int max = Integer.MAX_VALUE;
        int min = Integer.MIN_VALUE;
        System.out.println("int的最大值为："+max+"最小值为："+min);
        long max1 = Long.MAX_VALUE;
        long min1 = Long.MIN_VALUE;
        System.out.println("long的最大值为："+max1+"最小值为："+min1);

    }
}
